﻿import java.util.Scanner; 

public class code072 {
	public static void main(String[] argse){
		int nian =0;
		int avg =0;
		Scanner input= new Scanner(System.in);
		for (int i =0;i<10;i++ ){
			System.out.println("输入第"+(i+1)+"位顾客年龄:");
		avg = input.nextInt();
		if( avg> 0 && avg <= 30){
			nian++;
		
			
		}
			
		}System.out.println("30以下的比例"+nian/10.0*100+"%");
	System.out.println("30以上的比例"+(1-nian/10.0)*100+"%");

		}
	}